import request from '@/utils/request'

// 查询单元设置列表
export function listUnits(query) {
  return request({
    url: '/basice_info/units/list',
    method: 'get',
    params: query
  })
}

// 查询单元设置详细
export function getUnits(unitsId) {
  return request({
    url: '/basice_info/units/' + unitsId,
    method: 'get'
  })
}

// 新增单元设置
export function addUnits(data) {
  return request({
    url: '/basice_info/units',
    method: 'post',
    data: data
  })
}

// 修改单元设置
export function updateUnits(data) {
  return request({
    url: '/basice_info/units',
    method: 'put',
    data: data
  })
}

// 删除单元设置
export function delUnits(unitsId) {
  return request({
    url: '/basice_info/units/' + unitsId,
    method: 'delete'
  })
}
